package com.maxatime.service.impl;

import com.maxatime.dao.CurriculumSubjectMapper;
import com.maxatime.pojo.CurriculumSubject;
import com.maxatime.service.CurService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: 梁玉杰
 * @Date: 2021/8/30 09:08
 * @Description: TODO
 */
@Service
public class CurServiceImpl implements CurService {

    @Autowired
    private CurriculumSubjectMapper curMapper;


    @Override
    public List<CurriculumSubject> findAll(CurriculumSubject cur) {
        return curMapper.findAll(cur);
    }

    @Override
    public int insertSelective(CurriculumSubject curriculumSubject) {
        return curMapper.insertSelective(curriculumSubject);
    }

    @Override
    public int updateByPrimaryKeySelective(CurriculumSubject cur) {
        return curMapper.updateByPrimaryKeySelective(cur);
    }
}
